package com.aoip.telemetry.telemetry.entity.exception;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 异常信息实体类
 *
 * @author chenbai
 * @version 1.0
 * @date 2022/9/7 20:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("gp_abno_info")
@ApiModel(description = "异常信息表")
public class GpAbnoInfoEntity implements Serializable {
    private static final long serialVersionUID = 6523357612428491485L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "Code")
    @ApiModelProperty("站码")
    private String code;

    @TableField(value = "DataType")
    @ApiModelProperty("数据类型")
    private Integer dataType;

    @TableField(value = "AbnoType")
    @ApiModelProperty("异常类型")
    private Integer abnoType;

    @TableField(value = "Details")
    @ApiModelProperty("详情")
    private String details;

    @TableField(value = "BeginTime")
    @ApiModelProperty("开始时间")
    private LocalDateTime beginTime;

    @TableField(value = "EndTime")
    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    @TableField(value = "DataSource")
    @ApiModelProperty("数据来源")
    private String dataSource;

    @TableField(value = "CreateTime", fill = FieldFill.INSERT)
    @ApiModelProperty("入库时间")
    private LocalDateTime createTime;

}
